package manageSystem;

import product.*;

public class User {

	String name;
	int money;
	
	public User(String _name, int _money)
	{
		name = _name;
		money = _money;
	}
	
	public boolean Buy(Product product)
	{
		
		if(this.money >= product.price)
		{
			// buy
			this.money -= product.price;
			return true;
		}
		return false;
	}
}
